package com.jweb.framework.core.config;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

import com.jweb.framework.core.Action;
import com.jweb.framework.core.Interceptor;
import com.jweb.framework.core.ProcessExecutor;

public class CoreNamespaceHandler extends NamespaceHandlerSupport {

	
	public void init() {
		
		registerBeanDefinitionParser("simple-template", new TopSimpleExecutorParser());
		
		registerBeanDefinitionParser("interceptors", new TopInterceptorsParser());
		
		registerBeanDefinitionParser("interceptor", new TopBeanParser(Interceptor.class));
		registerBeanDefinitionParser("jservice", new TopBeanParser(Action.class));
		
		registerBeanDefinitionParser("template", new TopBeanParser(ProcessExecutor.class));
		
		registerBeanDefinitionParser("action", new TopProcedureParser());
		
		registerBeanDefinitionParser("service", new TopServiceParser());
		
	}
	
}
